﻿using Project.Ycm20250401.Service._20250418.Domain.Entities;
using Project.Ycm20250401.Service._20250522.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Ycm20250401.Service._20250522.Domain.IRepository
{
    public interface IGoodsOrderRepository
    {
        /// <summary>
        /// 根据单号获取订单信息
        /// </summary>
        /// <param name="orderNo"></param>
        /// <returns></returns>
        Task<GoodsOrderModel> GetGoodsOrderByOrderNo(string orderNo);

        //入库
        Task<bool> InsertGoodsOrder(GoodsOrderModel goodsOrder);

        //出库
        Task<bool> UpdateGoodsOrder(GoodsOrderModel goodsOrder);

        //根据车牌号，获取最近一次入库未出库的订单
        Task<GoodsOrderModel> GetLastGoodsOrderByCarNo(string carNo);

    }
}
